<?php

class broadcast extends CI_Controller {

    function __construct() {
        parent::__construct();
    }

    function index() {
        $this->load->model('mModel');
        $data ['isi'] = $this->mModel->telpon();
        $data['konten'] = 'broadcast';
        $this->load->view('home', $data);
    }

    function swrite() {
        $this->load->model('m_sms');
        $this->m_sms->write();
        $data = $this->input->post('nganu');
        $data['konten'] = 'broadcast';
        $data['notifikasi'] = "Pesan berhasil Dikirim";
        $data['Judul'] = "Insert Data Berhasil";
        $this->load->view('home', $data);
    }

}